import { getuserTotal as getuserTotalApi } from '@/api/statistics'

import { onMounted, ref } from 'vue'

let total = ref(0)
function getuserTotal() {
  getuserTotalApi().then((res: any) => {
    console.log(res)

    total.value = res.count

    // randerRanking(res.data)
  })
}

export default function () {
  onMounted(() => {
    getuserTotal()
  })

  return {
    total
  }
}
